package com.hnx.admin.aurora.system.mapper.dict;

import com.hnx.admin.aurora.annotation.AddInfo;
import com.hnx.admin.aurora.annotation.DeleteInfo;
import com.hnx.admin.aurora.annotation.UpdateInfo;
import com.hnx.admin.aurora.system.domain.dto.dict.entity.DictDataDTO;
import com.hnx.admin.aurora.system.domain.param.dict.form.DictDataForm;
import com.hnx.admin.aurora.system.domain.param.dict.query.DictDataQuery;

import java.util.List;

public interface DictDataMapper {
    List<DictDataDTO> selectDictDataByType(String dictType);
    List<DictDataDTO> selectDictDataList(DictDataQuery dictData);
    @AddInfo
    int insertDictData(DictDataForm dict);
    @DeleteInfo
    int deleteDictDataById(String dictCode);

    DictDataDTO selectDictDataById(String dictCode);

    int countDictDataByType(String[] dictIds);
    @UpdateInfo
    int updateDictData(DictDataForm dict);
}
